using Dream.FirstLevel.Base;
using Light;
using UnityEngine;

namespace Dream.FirstLevel.Implement
{
    /// <summary>
    ///     给领导端茶倒水
    ///     领导头上会有任务提示，去茶水间直接完成后送给领导就行
    /// </summary>
    public class ProductC : ProductBase
    {
        public ProductC()
        {
            ResManager.Instance.LoadAsync<Sprite>("ProductC", o => { _sprite = o; }, LoadType.AddressAbles);
            _waitTime = 10000;
            scuessPoints = 18;
            failPoints = 18;
        }

        /// <summary>
        ///     给在Worker中进行调用
        /// </summary>
        /// <param name="parentContainer"></param>
        public ProductC(Player.Player parentContainer)
        {
            this.parentContainer = parentContainer;
            ResManager.Instance.LoadAsync<Sprite>("ProductC", o => { _sprite = o; }, LoadType.AddressAbles);
            _waitTime = 10000;
            scuessPoints = 10;
            failPoints = 5;
        }


        public override void Success()
        {
            base.Success();
            Debug.Log("ProductC Success");
        }
    }
}